<template>
  <view>
    <pco-law-index v-if="permissionsList.includes(pcoLawIndexPermissions)"></pco-law-index>
    <school-index v-else></school-index>
  </view>
</template>
<script setup>
import pcoLawIndex from "@/pages/index/pcoLawIndex.vue";
import schoolIndex from "@/pages/index/schoolIndex.vue";
import config from '@/common/config'
const pcoLawIndexPermissions = config.PCO_LAW_INDEX_PERMISSIONS;
const permissionsList = uni.getStorageSync('permissions');
// #ifdef MP-WEIXIN
uni.hideTabBar();
// #endif
</script>